package com.mudongheng.app;

import com.mudongheng.app.model.SysUser;
import com.mudongheng.app.service.SysUserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Application.class, args);
        SysUserService sysUserService = run.getBean("sysUserServiceImpl", SysUserService.class);
        SysUser sysUser = sysUserService.get();
        sysUserService.insert(sysUser);
        sysUserService.update(sysUser);
        sysUserService.delete(sysUser);
    }

}
